package ui.home.column1

import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import state.ApplicationWindowsState
import state.WindowType
import ui.compose.RectIconButton


/**
 * @author wei kunJie
 * @date 2024/4/24 17:21:51
 */
@Composable
fun SettingMenu(applicationWindowsState: ApplicationWindowsState) {
    Spacer(modifier = Modifier.fillMaxWidth().height(8.dp))
    RectIconButton(
        onClick = {
            //点击更多
            applicationWindowsState.newWindow(WindowType.Setting)
        },
        modifier = Modifier.size(40.dp)
            .clip(RoundedCornerShape(8.dp))
    ) {
        Icon(
            painter = painterResource("icon/ic_more.svg"),
            contentDescription = "更多",
            tint = Color(0XFF000000),
            modifier = Modifier.size(40.dp).padding(11.dp)
        )
    }

    Spacer(modifier = Modifier.fillMaxWidth().height(10.dp))

}